package com.deepocean.dao;

import com.deepocean.entity.MagneticSeparatorCondition;
import com.deepocean.entity.MagneticSeparatorEntity;
import com.deepocean.entity.MagneticSeparatorInAndOut1Hour;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MagneticSeparatorDao {
    /**
     * 离心机增加记录
     * @param magneticSeparatorEntity
     * @return
     */
    boolean add(MagneticSeparatorEntity magneticSeparatorEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    MagneticSeparatorInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param magneticSeparatorCondition
     * @return
     */
    List<MagneticSeparatorEntity> getMagneticSeparatorByCondition(MagneticSeparatorCondition magneticSeparatorCondition);
}
